Skip to main content

HTTP Methods

(QW.HTTPMethodsACL)

Overview

This is a private feature developed by Qwilt.

This feature is used to set the HTTP methods available to clients, to enable a client payload, and to set the maximum payload size (in bytes).

Example

This example enables the GET, POST, and PUT methods; it allows a client payload of up to ten million bytes:

{
"generic-metadata-type": "MI.PrivateFeature.Qwilt.QW.HttpMethodsAcl",
"generic-metadata-value": {
"allowed-methods": [
"GET",
"POST",
"PUT"
],
"allow-client-payload": true,
"client-payload-max-size": 10000000
}
}

Supported Properties

FieldValid ValuesDescription
allowed-methodsPOST, PUT, GET, DELETE, OPTIONS, HEADAn array of strings specifying permitted HTTP methods
allow-client-payloadtrue, falseA Boolean indicating if client request bodies are permitted.
client-payload-max-sizeany integer (bytes)An integer specifying the maximum allowed payload size in bytes, if allow-client-payload is true.

info

When the POST method is enabled, POST requests are not stored in the CDN's cache. They are proxied to the origin server for handling.